// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import VueResource from 'vue-resource'
Vue.use(VueResource)
Vue.config.productionTip = false

/* eslint-disable no-new */

// 定義一個過濾器
Vue.filter('diseaseFilter', function(input) {
    if (input == "asthma") {
        return '哮喘急診'
    } else if (input == "cardiovascular") {
        return '心血管'
    } else if (input == "electrophysiology") {
        return '心電生理'
    }

})

new Vue({
    el: '#app',
    router,
    template: '<App/>',
    components: { App }
})